package mygang.model;

/**
 *
 * @author Volodymyr Lavrynovych <volodya.lavrynovych@gmail.com>
 * date: 23/02/2013
 */
public class ColumnModel implements OptionInterface {

    private boolean isPrimary = false;
    private String name;

    public ColumnModel(String name){
        this.name = name;
    }
    
    public ColumnModel(String name, boolean isPrimary){
        this(name);
        this.isPrimary = isPrimary;
    }

    public boolean isPrimary() {
        return isPrimary;
    }

    public String getName() {
        return name;
    }

    public Option toOption() {
        return new Option(getName(), getName().toUpperCase());
    }
}